const path = require('path');
const less = require('../../less');

module.exports = {
  // 端口
  port: 5050,
  // 标题
  title: 'D-Design-Vue',
  themeConfig: {
    // 导航栏
    nav: [{ text: '快速上手', link: '/' }],
    // 侧边栏
    sidebar: [
      '/',
      '/alert/',
      '/badge/',
      '/icon/',
      '/input/',
      '/breadcrumb/',
      '/menu/',
      '/pagination/',
      '/progress/',
      '/popover/',
      '/carousel/',
      '/dropdown/',
      '/transfer/',
      '/carousel/',
      '/datepicker/',
      '/checkbox/',
      '/descriptions/',
      '/space/',
      '/steps/',
      '/tree/',
      '/tabs/',
      '/collapse/',
      '/select/',
      '/radio/'
    ]
  },
  // 页面头部
  head: [['link', { rel: 'icon', href: '/favicon.ico' }]],
  less,
  configureWebpack: {
    resolve: {
      alias: {
        'core-js/library': path.resolve(
          __dirname,
          '../../node_modules/babel-runtime/node_modules/core-js/library'
        )
      }
    }
  }
};
